using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace BlogEngine.Core.Provider.Interfaces
{
	interface IXMLDocument
	{
		/// <summary>
		/// Retrieves an XML Document from the provider based on the specified key.
		/// </summary>
		XmlDocument Select(string key);
		/// <summary>
		/// Inserts a new XML Document into the data store specified by the provider.
		/// </summary>
		void Insert(string key, XmlDocument doc);
		/// <summary>
		/// Updates an existing XML Document in the data store specified by the provider.
		/// </summary>
		void Update(string key, XmlDocument doc);
		/// <summary>
		/// Deletes a XML Document from the data store specified by the provider.
		/// </summary>
		void Delete(string key);
	}
}
